import type { RouteRecordRaw } from 'vue-router';

// 国际化插件
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'material-symbols:android',
      order: -1,
      title: $t('baz.name'),
    },
    name: 'Baz',
    path: '/baz',
    children: [
      {
        name: 'Bar',
        path: '/bar',
        component: () => import('#/views/baz/bar/index.vue'),
        meta: {
          affixTab: true,
          icon: 'material-symbols:ar-stickers',
          title: $t('page.dashboard.analytics'),
        },
      },
      {
        name: 'Workspace',
        path: '/workspace',
        component: () => import('#/views/dashboard/workspace/index.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: $t('page.dashboard.workspace'),
        },
      },
    ],
  },
];

export default routes;
